evaluate

Evaluates the given expression for the node and returns XPathResult of the XPathResultType.ANY type.

Since

8.0.0

Throws

if this method fails to evaluate the expression.

if this node is closed.


fun Node.evaluate(expression: XPathExpression, type: XPathResultType): XPathResult
fun Node.evaluate(expression: XPathExpression, type: XPathResultType): XPathResult

Evaluates the given expression for the node and returns XPathResult of the given type.

Since

8.0.0

Throws

if this method fails to evaluate the expression or return a result of the given type.

if this node is closed.